package com.superhelper.common.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.NON_NULL)
public class AuserDeliver {

	private Long auserId;
	private Integer normal_sec;
	private Integer interval_sec;
	private BigDecimal gt_money;
	private Integer delay_sec;
	private Integer fixed_minute;
	private BigDecimal part_money;
	private Integer gt_minute;
	private BigDecimal max_money;
	private Integer one_km_minute;
	private Integer two_km_minute;
	private Integer third_km_minute;
	private Integer other_km_minute;

	private Integer state;
	@JsonIgnore
	private Date createAt;
	@JsonIgnore
	private Date updateAt;

	public Long getAuserId() {
		return auserId;
	}

	public void setAuserId(Long auserId) {
		this.auserId = auserId;
	}

	public Integer getNormal_sec() {
		return normal_sec;
	}

	public void setNormal_sec(Integer normal_sec) {
		this.normal_sec = normal_sec;
	}

	public Integer getInterval_sec() {
		return interval_sec;
	}

	public void setInterval_sec(Integer interval_sec) {
		this.interval_sec = interval_sec;
	}

	public BigDecimal getGt_money() {
		return gt_money;
	}

	public void setGt_money(BigDecimal gt_money) {
		this.gt_money = gt_money;
	}

	public Integer getDelay_sec() {
		return delay_sec;
	}

	public void setDelay_sec(Integer delay_sec) {
		this.delay_sec = delay_sec;
	}

	public Integer getFixed_minute() {
		return fixed_minute;
	}

	public void setFixed_minute(Integer fixed_minute) {
		this.fixed_minute = fixed_minute;
	}

	public BigDecimal getPart_money() {
		return part_money;
	}

	public void setPart_money(BigDecimal part_money) {
		this.part_money = part_money;
	}

	public Integer getGt_minute() {
		return gt_minute;
	}

	public void setGt_minute(Integer gt_minute) {
		this.gt_minute = gt_minute;
	}

	public BigDecimal getMax_money() {
		return max_money;
	}

	public void setMax_money(BigDecimal max_money) {
		this.max_money = max_money;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreateAt() {
		return createAt;
	}

	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}

	public Date getUpdateAt() {
		return updateAt;
	}

	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}

	public Integer getOne_km_minute() {
		return one_km_minute;
	}

	public void setOne_km_minute(Integer one_km_minute) {
		this.one_km_minute = one_km_minute;
	}

	public Integer getTwo_km_minute() {
		return two_km_minute;
	}

	public void setTwo_km_minute(Integer two_km_minute) {
		this.two_km_minute = two_km_minute;
	}

	public Integer getThird_km_minute() {
		return third_km_minute;
	}

	public void setThird_km_minute(Integer third_km_minute) {
		this.third_km_minute = third_km_minute;
	}

	public Integer getOther_km_minute() {
		return other_km_minute;
	}

	public void setOther_km_minute(Integer other_km_minute) {
		this.other_km_minute = other_km_minute;
	}

	private static AuserDeliver instance = null;

	public static AuserDeliver getDefault() {
		if (instance == null) {
			instance = new AuserDeliver();
			instance.setDelay_sec(300);// 金额大于一定的时候，订单延时
			instance.setFixed_minute(10);// 无人接之后，10分钟后自动增加小费
			instance.setGt_minute(5);// 增加小费后，再次隔5分钟再添加
			instance.setGt_money(BigDecimal.valueOf(100));// 大于多少钱，自动延时
			instance.setInterval_sec(300);// 每两单间隔300秒
			instance.setMax_money(BigDecimal.valueOf(10));// 增加小费的最大不能超过
			instance.setNormal_sec(100);// 平台接单后多少秒发单
			instance.setPart_money(BigDecimal.valueOf(2));// 每次增加小费2元
			instance.setOne_km_minute(3);
			instance.setTwo_km_minute(5);
			instance.setThird_km_minute(8);
			instance.setOther_km_minute(12);
		}
		return instance;
	}
}
